package com.youlai.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.youlai.system.mapper.AirRateMapper;
import com.youlai.system.mapper.AirTicketMapper;
import com.youlai.system.model.entity.AirTicket;
import com.youlai.system.service.AirTicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Author Ricardo
 * @Date 2024/10/24 15:05
 * @注释
 * 机票预定
 */
@Service
public class AirTicketServiceImpl extends ServiceImpl<AirTicketMapper, AirTicket> implements AirTicketService {

    @Autowired
    private AirTicketMapper airTicketMapper;

    @Override
    public int updateRateById(long id,float rate) {
        return airTicketMapper.updateRateById(id,rate);
    }

    @Override
    public List<AirTicket> getAirTicketsById(long id) {
        return airTicketMapper.getAirTicketsById(id);
    }
}
